import type { AxiosRequestConfig } from 'axios';
import type { RequestOptions } from '#/axios';
import { defHttp } from '@/utils/http/axios';
type Method = 'get' | 'post';
export function request<T = any>(conf: AxiosRequestConfig, options?: RequestOptions): Promise<T> {
  const method = ((conf.method || '').toLowerCase()) as Method || 'get';
  return defHttp[method](conf, options);
}
